Namespaces

Types in FluentNHibernate.Cfg.Db

Type PersistenceConfiguration<TThisConfiguration, TConnectionString>

Namespace FluentNHibernate.Cfg.Db

Interfaces IPersistenceConfigurer

Methods

Properties

Public instance methods

TThisConfiguration AdoNetBatchSize(int size)

Sets the adonet.batch_size property.
Parameters
int size

Batch size

Return
TThisConfiguration

Configuration

TThisConfiguration Cache(Action<CacheSettingsBuilder> cacheExpression)

Configure caching.
Parameters
Action<CacheSettingsBuilder> cacheExpression

Closure for configuring caching

Return
TThisConfiguration

Configuration builder

TThisConfiguration CollectionTypeFactory(Type collectionTypeFactoryClass)

Sets the collectiontype.factory_class property. NOTE: NHibernate 2.1 only
Parameters
Type collectionTypeFactoryClass

factory class

Return
TThisConfiguration

Configuration

TThisConfiguration CollectionTypeFactory(string collectionTypeFactoryClass)

Sets the collectiontype.factory_class property. NOTE: NHibernate 2.1 only
Parameters
string collectionTypeFactoryClass

factory class

Return
TThisConfiguration

Configuration

TThisConfiguration CollectionTypeFactory<TCollectionTypeFactory>()

Sets the collectiontype.factory_class property. NOTE: NHibernate 2.1 only
Return
TThisConfiguration

Configuration

TThisConfiguration ConnectionString(Action<TConnectionString> connectionStringExpression)

Configure the connection string
Parameters
Action<TConnectionString> connectionStringExpression

Closure for building the connection string

Return
TThisConfiguration

Configuration builder

TThisConfiguration ConnectionString(string value)

Set the connection string.
Parameters
string value

Connection string to use

Return
TThisConfiguration

Configuration builder

TThisConfiguration CurrentSessionContext(string currentSessionContextClass)

Sets the current_session_context_class property.
Parameters
string currentSessionContextClass

current session context class

Return
TThisConfiguration

Configuration

TThisConfiguration CurrentSessionContext<TSessionContext>()

Sets the current_session_context_class property.
Return
TThisConfiguration

Configuration

TThisConfiguration DefaultSchema(string schema)

Sets the default database schema
Parameters
string schema

Default schema name

Return
TThisConfiguration

Configuration builder

TThisConfiguration Dialect(string dialect)

Sets the database dialect. This shouldn't be necessary if you've used one of the provided database configurations.
Return
TThisConfiguration

Configuration builder

TThisConfiguration Dialect<T>()

Sets the database dialect. This shouldn't be necessary if you've used one of the provided database configurations.
Return
TThisConfiguration

Configuration builder

TThisConfiguration Driver(string driverClass)

Specify the database driver. This isn't necessary if you're using one of the provided database configurations.
Parameters
string driverClass

Driver type

Return
TThisConfiguration

Configuration builder

TThisConfiguration Driver<T>()

Specify the database driver. This isn't necessary if you're using one of the provided database configurations.
Return
TThisConfiguration

Configuration builder

TThisConfiguration FormatSql()

Enables the format SQL option.
Return
TThisConfiguration

Configuration builder

TThisConfiguration IsolationLevel(IsolationLevel connectionIsolation)

Sets the connection isolation level. NHibernate setting: connection.isolation
Parameters
IsolationLevel connectionIsolation

Isolation level

Return
TThisConfiguration

Configuration builder

TThisConfiguration IsolationLevel(string connectionIsolation)

Sets the connection isolation level. NHibernate setting: connection.isolation
Parameters
string connectionIsolation

Isolation level

Return
TThisConfiguration

Configuration builder

TThisConfiguration MaxFetchDepth(int maxFetchDepth)

Sets the max fetch depth.
Parameters
int maxFetchDepth

Max fetch depth

Return
TThisConfiguration

Configuration builder

TThisConfiguration Provider(string provider)

Sets the database provider. This shouldn't be necessary if you're using one of the provided database configurations.
Parameters
string provider

Provider type

Return
TThisConfiguration

Configuration builder

TThisConfiguration Provider<T>()

Sets the database provider. This shouldn't be necessary if you're using one of the provided database configurations.
Return
TThisConfiguration

Configuration builder

TThisConfiguration ProxyFactoryFactory(Type proxyFactoryFactory)

Sets the proxyfactory.factory_class property. NOTE: NHibernate 2.1 only
Parameters
Type proxyFactoryFactory

factory class

Return
TThisConfiguration

Configuration

TThisConfiguration ProxyFactoryFactory(string proxyFactoryFactoryClass)

Sets the proxyfactory.factory_class property. NOTE: NHibernate 2.1 only
Parameters
string proxyFactoryFactoryClass

factory class

Return
TThisConfiguration

Configuration

TThisConfiguration ProxyFactoryFactory<TProxyFactoryFactory>()

Sets the proxyfactory.factory_class property. NOTE: NHibernate 2.1 only
Return
TThisConfiguration

Configuration

TThisConfiguration QuerySubstitutions(string substitutions)

Sets any query stubstitutions that NHibernate should perform.
Parameters
string substitutions

Substitutions

Return
TThisConfiguration

Configuration builder

TThisConfiguration Raw(string key, string value)

Sets a raw property on the NHibernate configuration. Use this method if there isn't a specific option available in the API.
Parameters
string key

Setting key

string value

Setting value

Return
TThisConfiguration

Configuration builder

TThisConfiguration ShowSql()

Enables the show SQL option.
Return
TThisConfiguration

Configuration builder

IDictionary<string, string> ToProperties()

TThisConfiguration UseOuterJoin()

Enables the outer-join option.
Return
TThisConfiguration

Configuration builder

TThisConfiguration UseReflectionOptimizer()

Enables the reflection optimizer.
Return
TThisConfiguration

Configuration builder

Public properties

TThisConfiguration DoNot get;

Negates the next boolean option.